package gagak.framework.web.param;

import java.lang.reflect.Type;

/*
 * @program: ce
 * @description: 方法的返回信息
 * @author: houhong
 * @create: 2022-11-25 15:11
 */
public class MethodReturnInfo {

    /*
     * 返回所属的控制器
     */
    private final Object controller;
    /*
     * 返回所属于的方法
     */
    private final Object method;
    /*
     * 返回类型
     */
    private final Class<?> returnType;
    /*
    *  返回类型范型
    */
    private Type returnTypeType;
    /*
    *  返回的结果 // TODO: 2022/11/25  不需要
    */
    private Object result;

    public MethodReturnInfo(Object controller, Object method, Class<?> returnType) {
        this.controller = controller;
        this.method = method;
        this.returnType = returnType;
    }

    public Type getReturnTypeType() {
        return returnTypeType;
    }

    public void setReturnTypeType(Type returnTypeType) {
        this.returnTypeType = returnTypeType;
    }

    public Object getController() {
        return controller;
    }

    public Object getMethod() {
        return method;
    }

    public Class<?> getReturnType() {
        return returnType;
    }

    public Object getResult() {
        return result;
    }

    public void setResult(Object result) {
        this.result = result;
    }
}